Create a supplier facility for the given organization.
POST/partner/v1.0/organizations/:organizationId/facilities
Create a supplier facility for the given organization.
Request
Path Parameters
The ID of the organization in the Carbon Trail platform.
- application/json
- text/json
- application/*+json
Body
The supplier facility to create.
Array [
]
Array [
- CustomFieldValue
- TextCustomFieldValue
- SelectCustomFieldValue
- MultiSelectCustomFieldValue
- Text
- Select
- Multi-Select
- Text
- Select
- Multi-Select
- Text
- Select
- Multi-Select
- Text
- Select
- Multi-Select
]
Array [
]
The unique identifier of the facility in CarbonTrail.
The unique identifier of the organization the facility belongs to.
The unique identifier of the subsidiary the facility belongs to.
The name of the facility.
location
object
Represents a geographical location where a manufacturing process or material sourcing takes place.
The unique identifier of the location.
The name of the city.
The name of the state where the location is situated.
Possible values: non-empty
The ISO 3166-1 alpha-2 country code.
The full name of the country.
The name of the continent.
The latitude coordinate of the location.
The longitude coordinate of the location.
Possible values: [Owned, Leased To Others, Leased From Others, Franchise, Supplier Factory, Non-Leased Upstream, Non-Leased Downstream]
Possible values: [Unknown, Factory, Warehouse, Retail Store, Office, Service Center, Logistics Center, Outlet Store, Showroom]
The total area of the facility in square meters, when available.
The leased area of the facility in square meters, when available.
The occupancy rate of the facility as a percentage from 0 to 100, when available.
The primary contact email address for the facility.
aliases
object[]
nullable
The aliases associated with the facility, including alternative identifiers.
The unique identifier of the alias definition in CarbonTrail.
The name of the alias (e.g., "Supplier ID", "Facility ID").
The identifier value associated with the entity for this alias.
customFieldValues
object[]
nullable
The values of custom fields associated with the facility.
oneOf
Represents a custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
The value of the text custom field.
The value of the multi-select custom field.
The values of the multi-select custom field.
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
Represents a text custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
circular(TextCustomFieldValue)
The value of the multi-select custom field.
The values of the multi-select custom field.
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
The value of the text custom field.
Represents a select custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
The value of the text custom field.
circular(SelectCustomFieldValue)
The values of the multi-select custom field.
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
The value of the multi-select custom field.
Represents a multi-select custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
The value of the text custom field.
The value of the multi-select custom field.
circular(MultiSelectCustomFieldValue)
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
The values of the multi-select custom field.
externalIdentities
object[]
nullable
The identifiers of the facility in source systems, used for idempotency to prevent duplicate imports.
The name of the system (e.g., "SAP", "Workday", "Snowflake") where this ID is from.
The unique identifier value from the system.
The date and time the facility was created, in UTC.
The date and time the facility was last updated, in UTC, when available.
Body
The supplier facility to create.
Array [
]
Array [
- CustomFieldValue
- TextCustomFieldValue
- SelectCustomFieldValue
- MultiSelectCustomFieldValue
- Text
- Select
- Multi-Select
- Text
- Select
- Multi-Select
- Text
- Select
- Multi-Select
- Text
- Select
- Multi-Select
]
Array [
]
The unique identifier of the facility in CarbonTrail.
The unique identifier of the organization the facility belongs to.
The unique identifier of the subsidiary the facility belongs to.
The name of the facility.
location
object
Represents a geographical location where a manufacturing process or material sourcing takes place.
The unique identifier of the location.
The name of the city.
The name of the state where the location is situated.
Possible values: non-empty
The ISO 3166-1 alpha-2 country code.
The full name of the country.
The name of the continent.
The latitude coordinate of the location.
The longitude coordinate of the location.
Possible values: [Owned, Leased To Others, Leased From Others, Franchise, Supplier Factory, Non-Leased Upstream, Non-Leased Downstream]
Possible values: [Unknown, Factory, Warehouse, Retail Store, Office, Service Center, Logistics Center, Outlet Store, Showroom]
The total area of the facility in square meters, when available.
The leased area of the facility in square meters, when available.
The occupancy rate of the facility as a percentage from 0 to 100, when available.
The primary contact email address for the facility.
aliases
object[]
nullable
The aliases associated with the facility, including alternative identifiers.
The unique identifier of the alias definition in CarbonTrail.
The name of the alias (e.g., "Supplier ID", "Facility ID").
The identifier value associated with the entity for this alias.
customFieldValues
object[]
nullable
The values of custom fields associated with the facility.
oneOf
Represents a custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
The value of the text custom field.
The value of the multi-select custom field.
The values of the multi-select custom field.
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
Represents a text custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
circular(TextCustomFieldValue)
The value of the multi-select custom field.
The values of the multi-select custom field.
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
The value of the text custom field.
Represents a select custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
The value of the text custom field.
circular(SelectCustomFieldValue)
The values of the multi-select custom field.
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
The value of the multi-select custom field.
Represents a multi-select custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
The value of the text custom field.
The value of the multi-select custom field.
circular(MultiSelectCustomFieldValue)
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
The values of the multi-select custom field.
externalIdentities
object[]
nullable
The identifiers of the facility in source systems, used for idempotency to prevent duplicate imports.
The name of the system (e.g., "SAP", "Workday", "Snowflake") where this ID is from.
The unique identifier value from the system.
The date and time the facility was created, in UTC.
The date and time the facility was last updated, in UTC, when available.
Body
The supplier facility to create.
Array [
]
Array [
- CustomFieldValue
- TextCustomFieldValue
- SelectCustomFieldValue
- MultiSelectCustomFieldValue
- Text
- Select
- Multi-Select
- Text
- Select
- Multi-Select
- Text
- Select
- Multi-Select
- Text
- Select
- Multi-Select
]
Array [
]
The unique identifier of the facility in CarbonTrail.
The unique identifier of the organization the facility belongs to.
The unique identifier of the subsidiary the facility belongs to.
The name of the facility.
location
object
Represents a geographical location where a manufacturing process or material sourcing takes place.
The unique identifier of the location.
The name of the city.
The name of the state where the location is situated.
Possible values: non-empty
The ISO 3166-1 alpha-2 country code.
The full name of the country.
The name of the continent.
The latitude coordinate of the location.
The longitude coordinate of the location.
Possible values: [Owned, Leased To Others, Leased From Others, Franchise, Supplier Factory, Non-Leased Upstream, Non-Leased Downstream]
Possible values: [Unknown, Factory, Warehouse, Retail Store, Office, Service Center, Logistics Center, Outlet Store, Showroom]
The total area of the facility in square meters, when available.
The leased area of the facility in square meters, when available.
The occupancy rate of the facility as a percentage from 0 to 100, when available.
The primary contact email address for the facility.
aliases
object[]
nullable
The aliases associated with the facility, including alternative identifiers.
The unique identifier of the alias definition in CarbonTrail.
The name of the alias (e.g., "Supplier ID", "Facility ID").
The identifier value associated with the entity for this alias.
customFieldValues
object[]
nullable
The values of custom fields associated with the facility.
oneOf
Represents a custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
The value of the text custom field.
The value of the multi-select custom field.
The values of the multi-select custom field.
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
Represents a text custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
circular(TextCustomFieldValue)
The value of the multi-select custom field.
The values of the multi-select custom field.
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
The value of the text custom field.
Represents a select custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
The value of the text custom field.
circular(SelectCustomFieldValue)
The values of the multi-select custom field.
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
The value of the multi-select custom field.
Represents a multi-select custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
The value of the text custom field.
The value of the multi-select custom field.
circular(MultiSelectCustomFieldValue)
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
The values of the multi-select custom field.
externalIdentities
object[]
nullable
The identifiers of the facility in source systems, used for idempotency to prevent duplicate imports.
The name of the system (e.g., "SAP", "Workday", "Snowflake") where this ID is from.
The unique identifier value from the system.
The date and time the facility was created, in UTC.
The date and time the facility was last updated, in UTC, when available.
Responses
- 201
Created
- text/plain
- application/json
- text/json
- Schema
- Example (from schema)
Schema
Array [
]
Array [
- CustomFieldValue
- TextCustomFieldValue
- SelectCustomFieldValue
- MultiSelectCustomFieldValue
- Text
- Select
- Multi-Select
- Text
- Select
- Multi-Select
- Text
- Select
- Multi-Select
- Text
- Select
- Multi-Select
]
Array [
]
The unique identifier of the facility in CarbonTrail.
The unique identifier of the organization the facility belongs to.
The unique identifier of the subsidiary the facility belongs to.
The name of the facility.
location
object
Represents a geographical location where a manufacturing process or material sourcing takes place.
The unique identifier of the location.
The name of the city.
The name of the state where the location is situated.
Possible values: non-empty
The ISO 3166-1 alpha-2 country code.
The full name of the country.
The name of the continent.
The latitude coordinate of the location.
The longitude coordinate of the location.
Possible values: [Owned, Leased To Others, Leased From Others, Franchise, Supplier Factory, Non-Leased Upstream, Non-Leased Downstream]
Possible values: [Unknown, Factory, Warehouse, Retail Store, Office, Service Center, Logistics Center, Outlet Store, Showroom]
The total area of the facility in square meters, when available.
The leased area of the facility in square meters, when available.
The occupancy rate of the facility as a percentage from 0 to 100, when available.
The primary contact email address for the facility.
aliases
object[]
nullable
The aliases associated with the facility, including alternative identifiers.
The unique identifier of the alias definition in CarbonTrail.
The name of the alias (e.g., "Supplier ID", "Facility ID").
The identifier value associated with the entity for this alias.
customFieldValues
object[]
nullable
The values of custom fields associated with the facility.
oneOf
Represents a custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
The value of the text custom field.
The value of the multi-select custom field.
The values of the multi-select custom field.
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
Represents a text custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
circular(TextCustomFieldValue)
The value of the multi-select custom field.
The values of the multi-select custom field.
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
The value of the text custom field.
Represents a select custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
The value of the text custom field.
circular(SelectCustomFieldValue)
The values of the multi-select custom field.
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
The value of the multi-select custom field.
Represents a multi-select custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
The value of the text custom field.
The value of the multi-select custom field.
circular(MultiSelectCustomFieldValue)
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
The values of the multi-select custom field.
externalIdentities
object[]
nullable
The identifiers of the facility in source systems, used for idempotency to prevent duplicate imports.
The name of the system (e.g., "SAP", "Workday", "Snowflake") where this ID is from.
The unique identifier value from the system.
The date and time the facility was created, in UTC.
The date and time the facility was last updated, in UTC, when available.
{
"id": "string",
"organizationId": "string",
"subsidiaryId": "string",
"name": "string",
"location": {
"id": "loc-12345",
"city": "Paris",
"stateName": "Île-de-France",
"country": "FR",
"countryName": "France",
"continent": "Europe",
"latitude": 48.8566,
"longitude": 2.3522
},
"category": "Owned",
"type": "Unknown",
"area": 0,
"leasedArea": 0,
"occupancyRate": 0,
"primaryEmail": "string",
"aliases": [
{
"id": "string",
"name": "string",
"value": "string"
}
],
"customFieldValues": [
{},
null,
null,
null
],
"externalIdentities": [
{
"name": "string",
"value": "string"
}
],
"created": "2024-07-29T15:51:28.071Z",
"updated": "2024-07-29T15:51:28.071Z"
}
- Schema
- Example (from schema)
Schema
Array [
]
Array [
- CustomFieldValue
- TextCustomFieldValue
- SelectCustomFieldValue
- MultiSelectCustomFieldValue
- Text
- Select
- Multi-Select
- Text
- Select
- Multi-Select
- Text
- Select
- Multi-Select
- Text
- Select
- Multi-Select
]
Array [
]
The unique identifier of the facility in CarbonTrail.
The unique identifier of the organization the facility belongs to.
The unique identifier of the subsidiary the facility belongs to.
The name of the facility.
location
object
Represents a geographical location where a manufacturing process or material sourcing takes place.
The unique identifier of the location.
The name of the city.
The name of the state where the location is situated.
Possible values: non-empty
The ISO 3166-1 alpha-2 country code.
The full name of the country.
The name of the continent.
The latitude coordinate of the location.
The longitude coordinate of the location.
Possible values: [Owned, Leased To Others, Leased From Others, Franchise, Supplier Factory, Non-Leased Upstream, Non-Leased Downstream]
Possible values: [Unknown, Factory, Warehouse, Retail Store, Office, Service Center, Logistics Center, Outlet Store, Showroom]
The total area of the facility in square meters, when available.
The leased area of the facility in square meters, when available.
The occupancy rate of the facility as a percentage from 0 to 100, when available.
The primary contact email address for the facility.
aliases
object[]
nullable
The aliases associated with the facility, including alternative identifiers.
The unique identifier of the alias definition in CarbonTrail.
The name of the alias (e.g., "Supplier ID", "Facility ID").
The identifier value associated with the entity for this alias.
customFieldValues
object[]
nullable
The values of custom fields associated with the facility.
oneOf
Represents a custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
The value of the text custom field.
The value of the multi-select custom field.
The values of the multi-select custom field.
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
Represents a text custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
circular(TextCustomFieldValue)
The value of the multi-select custom field.
The values of the multi-select custom field.
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
The value of the text custom field.
Represents a select custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
The value of the text custom field.
circular(SelectCustomFieldValue)
The values of the multi-select custom field.
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
The value of the multi-select custom field.
Represents a multi-select custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
The value of the text custom field.
The value of the multi-select custom field.
circular(MultiSelectCustomFieldValue)
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
The values of the multi-select custom field.
externalIdentities
object[]
nullable
The identifiers of the facility in source systems, used for idempotency to prevent duplicate imports.
The name of the system (e.g., "SAP", "Workday", "Snowflake") where this ID is from.
The unique identifier value from the system.
The date and time the facility was created, in UTC.
The date and time the facility was last updated, in UTC, when available.
{
"id": "string",
"organizationId": "string",
"subsidiaryId": "string",
"name": "string",
"location": {
"id": "loc-12345",
"city": "Paris",
"stateName": "Île-de-France",
"country": "FR",
"countryName": "France",
"continent": "Europe",
"latitude": 48.8566,
"longitude": 2.3522
},
"category": "Owned",
"type": "Unknown",
"area": 0,
"leasedArea": 0,
"occupancyRate": 0,
"primaryEmail": "string",
"aliases": [
{
"id": "string",
"name": "string",
"value": "string"
}
],
"customFieldValues": [
{},
null,
null,
null
],
"externalIdentities": [
{
"name": "string",
"value": "string"
}
],
"created": "2024-07-29T15:51:28.071Z",
"updated": "2024-07-29T15:51:28.071Z"
}
- Schema
- Example (from schema)
Schema
Array [
]
Array [
- CustomFieldValue
- TextCustomFieldValue
- SelectCustomFieldValue
- MultiSelectCustomFieldValue
- Text
- Select
- Multi-Select
- Text
- Select
- Multi-Select
- Text
- Select
- Multi-Select
- Text
- Select
- Multi-Select
]
Array [
]
The unique identifier of the facility in CarbonTrail.
The unique identifier of the organization the facility belongs to.
The unique identifier of the subsidiary the facility belongs to.
The name of the facility.
location
object
Represents a geographical location where a manufacturing process or material sourcing takes place.
The unique identifier of the location.
The name of the city.
The name of the state where the location is situated.
Possible values: non-empty
The ISO 3166-1 alpha-2 country code.
The full name of the country.
The name of the continent.
The latitude coordinate of the location.
The longitude coordinate of the location.
Possible values: [Owned, Leased To Others, Leased From Others, Franchise, Supplier Factory, Non-Leased Upstream, Non-Leased Downstream]
Possible values: [Unknown, Factory, Warehouse, Retail Store, Office, Service Center, Logistics Center, Outlet Store, Showroom]
The total area of the facility in square meters, when available.
The leased area of the facility in square meters, when available.
The occupancy rate of the facility as a percentage from 0 to 100, when available.
The primary contact email address for the facility.
aliases
object[]
nullable
The aliases associated with the facility, including alternative identifiers.
The unique identifier of the alias definition in CarbonTrail.
The name of the alias (e.g., "Supplier ID", "Facility ID").
The identifier value associated with the entity for this alias.
customFieldValues
object[]
nullable
The values of custom fields associated with the facility.
oneOf
Represents a custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
The value of the text custom field.
The value of the multi-select custom field.
The values of the multi-select custom field.
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
Represents a text custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
circular(TextCustomFieldValue)
The value of the multi-select custom field.
The values of the multi-select custom field.
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
The value of the text custom field.
Represents a select custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
The value of the text custom field.
circular(SelectCustomFieldValue)
The values of the multi-select custom field.
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
The value of the multi-select custom field.
Represents a multi-select custom field value.
type
string
required
Possible values: [Text, Select, Multi-Select]
The value of the text custom field.
The value of the multi-select custom field.
circular(MultiSelectCustomFieldValue)
Possible values: non-empty
The unique identifier of the custom field this value is associated with.
The values of the multi-select custom field.
externalIdentities
object[]
nullable
The identifiers of the facility in source systems, used for idempotency to prevent duplicate imports.
The name of the system (e.g., "SAP", "Workday", "Snowflake") where this ID is from.
The unique identifier value from the system.
The date and time the facility was created, in UTC.
The date and time the facility was last updated, in UTC, when available.
{
"id": "string",
"organizationId": "string",
"subsidiaryId": "string",
"name": "string",
"location": {
"id": "loc-12345",
"city": "Paris",
"stateName": "Île-de-France",
"country": "FR",
"countryName": "France",
"continent": "Europe",
"latitude": 48.8566,
"longitude": 2.3522
},
"category": "Owned",
"type": "Unknown",
"area": 0,
"leasedArea": 0,
"occupancyRate": 0,
"primaryEmail": "string",
"aliases": [
{
"id": "string",
"name": "string",
"value": "string"
}
],
"customFieldValues": [
{},
null,
null,
null
],
"externalIdentities": [
{
"name": "string",
"value": "string"
}
],
"created": "2024-07-29T15:51:28.071Z",
"updated": "2024-07-29T15:51:28.071Z"
}